#include<stdio.h>
#include<math.h>
#include<string.h>
#include<stdlib.h>

typedef struct stu
{
	char* num;
	int point;


}STUDENT;


void fusion(int a,int b)
{
	int ret = a / 10 * 1000;
	ret += b / 10 * 100;
	ret += a%10 * 10;
	ret += b%10;
	printf("%d\n", ret);

}
#define M 2
#define N 5

void find_min_in_row(int arr[M][N],int output_arr[])
{
	int min = arr[0][0];
	int cout = 0;
	for (int i = 0; i < N; i++)
	{
		min = arr[0][N];
		for (int j = 0; j < M; j++)
		{
			if (arr[j][i] < min)
			{
				min = arr[j][i];
			}
		}
		output_arr[cout++] = min;
	}

}

int find_strstr_cout(const char* des,const char* substr)
{
	char* temp = des;
	int count = 0;
	while(1)
	{
		temp = strstr(temp, substr);
		if (temp != NULL)
		{
			temp += 2;
			count++;
		}
		else
		{
			return count;
		}
	}
	
}

int main()
{
	int arr[M][N] = { {1,2,3,4,5},{7,5,1,8,3} };
	int output_arr[N];
	find_min_in_row(arr, output_arr);
	//printf("%s",strstr("ccttcctt", "tt"));
	find_strstr_cout("ccttccttidwhuittsjaODoittADFTDtt", "tt");



	return 0;
}